package chapter4.injection_contructure;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class ConfigurableMessageProvider implements ConfigurableProvide {
	private String message;

	public ConfigurableMessageProvider() {
	}

	@Autowired
	public ConfigurableMessageProvider(
			@Value(" (ANNOTION) --- INJECTTION CONTRUCTURE -----") String message) {
		this.message = message;
	}

	@Override
	public String getMessage() {
		return message;
	}

}
